package cn.dm.service;

import cn.dm.common.Dto;
import cn.dm.pojo.DmUser;
import cn.dm.vo.DmUserRegisterVO;
import cn.dm.vo.QueryUserVo;

public interface LocalUserService {
    Dto code(String phone)throws Exception;

    Dto checkEmail(String phone)throws Exception;

    Dto register(DmUserRegisterVO dmUserRegisterVO)throws Exception;

    Dto login(String phone,String password)throws Exception;

    Dto queryUserInfoByToken()throws Exception;

    Dto modifyUserInfo(QueryUserVo queryUserVo)throws Exception;

    DmUser findUserByWxId(String openId)throws Exception;

    Long createUser(DmUser dmUser) throws Exception;

    String genToken(DmUser dmUser)throws Exception;
}
